<template>
    <div class="auth-container">
      <div class="auth-form-container">
        <h2>{{ isLogin ? '登录' : '注册' }}</h2>
        <Login/>
        
        <div class="form-switch">
          <span v-if="isLogin">还没有账号？</span>
          <a href="#" >{{ isLogin ? '立即注册' : '已有账号？登录' }}</a>
        </div>
      </div>
    </div>
  </template>
  
  <script setup>
  import { ref } from 'vue'
  import Login from './Login.vue';
  const isLogin = ref(true)
  </script>
  
  <style scoped>
  .auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f5f5f5;
  }
  
  .auth-form-container {
    width: 100%;
    max-width: 400px;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }
  
  h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
  }
  
  .form-switch {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #666;
  }
  
  .form-switch a {
    color: #409eff;
    text-decoration: none;
    margin-left: 5px;
  }
  
  .form-switch a:hover {
    text-decoration: underline;
  }
  </style>